/************************************************************************

								Heroes IV
					  Copyright 2000, The 3DO Company

	------------------------------------------------------------------
  						 spell_icon_window.h

	$Header: /heroes4/spell_icon_window.h $

	$NoKeywords: $

 ************************************************************************/

#if !defined( SPELL_ICON_WINDOW_H_INCLUDED )
#define SPELL_ICON_WINDOW_H_INCLUDED

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "bitmap_layer_cache_window.h"

enum t_spell;

// -------------------------------------------------------------------
// window to display a skill icon
// -------------------------------------------------------------------

class t_spell_icon_window : public t_bitmap_layer_cache_window
{
public:
	t_spell_icon_window( t_spell spell, t_screen_rect const& rect, t_window* parent);

	t_spell get_spell() const;

    virtual void		 right_button_up( t_mouse_event const& event );

	void set_spell( t_spell spell );
protected:
	int                 m_height;
	t_spell             m_spell;
};

inline t_spell t_spell_icon_window::get_spell() const
{
	return m_spell;
}

#endif 